package com.qbt.unipock.agent.interfaces;

import java.util.Map.Entry;

import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

import com.xjoyt.pay.dto.ExecuteResult;
import com.xjoyt.pay.master.po.CompanyPreference;

public interface CompanyPreferenceContract {

	@RequestMapping("get/{id}")
	CompanyPreference get(@PathVariable("id") String id);

	@RequestMapping("getByDoamin/{domain}/")
	CompanyPreference getByDoamin(@PathVariable("domain") String domain);

	@RequestMapping(value = "saveValue/{id}", method = RequestMethod.POST)
	ExecuteResult<?> saveValue(@PathVariable("id") String id, Entry<String, String> param) throws Exception;
}
